//
//  NNCalendarPageView.h
//  TestObjectProduct
//
//  Created by fangshufeng on 16/9/30.
//  Copyright © 2016年 fangshufeng. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, NNCalendarPageViewBeginDay) {
    NNNCalendarPageViewSunday = 1,     //周日
    NNCalendarPageViewMonday, //周一
};

@class NNCalendarModel,NNCalendarPageView;
@protocol NNCalendarPageViewDelegate <NSObject>

@optional
- (void)calendarPageView:(NNCalendarPageView *)NNCalendarPageView itemDidClick:(NNCalendarModel *)model;

@end

@interface NNCalendarPageView : UIView

- (instancetype)initWithNibNameStr:(NSString *)nibWithNibNameStr  cellWithReuseIdentifier:(NSString *)cellWithReuseIdentifier calendarPageViewBeginDay:(NNCalendarPageViewBeginDay)calendarPageViewBeginDay;

- (instancetype)initWithRegisterClassName:(NSString *)className  cellWithReuseIdentifier:(NSString *)cellWithReuseIdentifier calendarPageViewBeginDay:(NNCalendarPageViewBeginDay)calendarPageViewBeginDay;
/***/
@property(nonatomic, weak) id<NNCalendarPageViewDelegate> delegate;
/**装着日历对象  (NNCalendarModel) */
@property(nonatomic, strong) NSArray *pageItems;

/**item的高度 */
- (CGFloat)itemHeightWithWidth:(CGFloat)width;

/**设置背景颜色*/
@property(nonatomic, strong) UIColor *backGroundColor;

/**headView*/
@property(nonatomic, strong) UIColor *headViewBackColor;

/***/
@property(nonatomic, assign,readonly) NNCalendarPageViewBeginDay calendarPageViewBeginDay;
@end
